#ifndef ROUNDEDBOX_H
#define ROUNDEDBOX_H

#include "glbuffers.h"
#include "glextensions.h"
#include "gltrianglemesh.h"

#include <QVector2D>
#include <QVector3D>

struct P3T2N3Vertex
{
    QVector3D position;
    QVector2D texCoord;
    QVector3D normal;
    static VertexDescription description[];
};

class GLRoundedBox : public GLTriangleMesh<P3T2N3Vertex, unsigned short>
{
public:
    // 0 < r < 0.5, 0 <= n <= 125
    explicit GLRoundedBox(float r = 0.25f, float scale = 1.0f, int n = 10);
};


#endif
